package com.wanmait.community.validation.usableArea;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.FIELD})//作用于字段
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = UsableAreaValidator.class)
public @interface ValidUsableArea {
    String message() default "室内面积必须 ≤ 建筑面积";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
